package com.vogue.supplymall.account.domain.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * Created by 崔岳  on 2017-11-29. <br>
 * 注册用户（买家/卖家都是统一表）
 */
@Entity
@Table(name = "base_user")
public class User extends BaseEntity implements Serializable{

	/**
	 * 
	 */
	@Transient
	private static final long serialVersionUID = 8525782372897482215L;

	/** 匹配供应链系统中的id */
	private String matchid = "";
	
	/** 登录名 */
	private String loginname = "";
	
	/** 密码 */
	private String password = "";
	
	/** 助记符 */
	private String sign = "";
	
	/** 昵称 */
	private String name = "";
	
	/** 直属机构id，供应链导入的用户有值 */
	private Long organid = 0L;
	
	/** 是否启用人员关联机构功能（0否 1是） */
	private Boolean moflag = false;
	
	/** 手机号 */
	private String tel = "";

	/** 默认的登录系统注册号id */
	private Long defsyscodeid = 0L;
	
	/** 头像图片地址 */
	private String headimgurl = "";
	
	public String getMatchid() {
		return matchid;
	}

	public void setMatchid(String matchid) {
		this.matchid = matchid;
	}

	public String getLoginname() {
		return loginname;
	}

	public void setLoginname(String loginname) {
		this.loginname = loginname;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getOrganid() {
		return organid;
	}

	public void setOrganid(Long organid) {
		this.organid = organid;
	}

	public Boolean isMoflag() {
		return moflag;
	}

	public void setMoflag(Boolean moflag) {
		this.moflag = moflag;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public Long getDefsyscodeid() {
		return defsyscodeid;
	}

	public void setDefsyscodeid(Long defsyscodeid) {
		this.defsyscodeid = defsyscodeid;
	}
	
	public String getHeadimgurl() {
		return headimgurl;
	}

	public void setHeadimgurl(String headimgurl) {
		this.headimgurl = headimgurl;
	}
	
}
